import request from '../utils/request';

//登录
export async function login(params) {
    return request({
        url: '/user/login',
        method: 'post',
        data:params 
    });
};
//查询个人信息
export async function getUserInfo(params) {
    return request({
        url: '/user/'+params.uid,
        method: 'get',
        headers:{
            'Content-Type': 'application/json',
            'token': params.token 
        }
    });
};
//发布公告
export async function issue(data,params) {
    return request({
        url: '/web',
        method: 'put',
        data:data,
        headers:{
            'Content-Type': 'application/json',
            'token': params.token 
        }
    });
};

